﻿using System;

namespace Chess.Common
{
    [Serializable]
    public class BytePoint
    {
        public BytePoint(byte x, byte y)
        {
            X = x;
            Y = y;
        }

        public byte X { get; private set; }
        public byte Y { get; private set; }

        public int Position { get { return X + Y*8; } }
    }
}
